import { request } from "@/utils";


//用户授权 onAuthorize
export function userRegister(data) {
    return request({
        url: '/abp/ycusetokenrecord/create',
        method: 'POST',
        data: data
    })
}

//获取普通用户信息列表
export function getNormalUserListApi(data) {
    return request({
        url: "/abp/ycusetokenrecord/GetListGrpouPage",
        method: "POST",
        data: data
    })
}

//用户鉴权
export function Authentication() {
    return request({
        url: "/abp/ycusetokenrecord/create",
        method: "GET"
    })
}

//获取用户修改的信息
export function GetUserinfo(id) {
    return request({
        url: `/abp/ycusetokenrecord/create?id=${id}`,
        method: "GET"
    })
}

//修改用户信息
export function UserEdit(data) {
    return request({
        url: "/abp/ycusetokenrecord/create",
        method: "POST",
        data:data
    })
}


//删除用户
export function UserDel(id){
    return request({
        url: `/abp/ycusetokenrecord/create?id=${id}`,
        method: "DELETE"
    })
}

//获取矿山复选框列表
export function getCheckboxListApi(){
    return request({
        url: `/abp/ycusetokenrecord/create`,
        method: "GET"
    })
}